package cn.yunhe.entity;

import lombok.Data;

/*
定单实体类
 */
@Data
public class Order {
    private int orderId;//订单编号
    private String odate;//订单日期
    private int state;//状态
    private SendPerson sendPerson;//发货人属性
    private Consignee consignee;//收货人属性
    private Goods goods;//商品属性
    private Type types;//快递类型属性
    private int total;//count


    public Order() {
    }

    public Order(int orderId) {
        this.orderId = orderId;
    }

    public Order(int orderId, String odate, int state, SendPerson sendPerson, Consignee consignee, Goods goods, Type types) {
        this.orderId = orderId;
        this.odate = odate;
        this.state = state;
        this.sendPerson = sendPerson;
        this.consignee = consignee;
        this.goods = goods;
        this.types = types;
    }

    public Order(String odate, int state, SendPerson sendPerson, Consignee consignee, Goods goods, Type types) {
        this.odate = odate;
        this.state = state;
        this.sendPerson = sendPerson;
        this.consignee = consignee;
        this.goods = goods;
        this.types = types;
    }

    public Order(String odate, SendPerson sendPerson, Consignee consignee, Goods goods, Type types) {
        this.odate = odate;
        this.sendPerson = sendPerson;
        this.consignee = consignee;
        this.goods = goods;
        this.types = types;
    }
}
